Skip to content

[core] Fix FallbackReadScan to handle subset partition keys in fallback branch#7508

Open
lilei1128 wants to merge 3 commits intoapache:masterfrom
lilei1128:fix-fallback
Open

[core] Fix FallbackReadScan to handle subset partition keys in fallback branch#7508
lilei1128 wants to merge 3 commits intoapache:masterfrom
lilei1128:fix-fallback

Conversation

@lilei1128
Copy link
Contributor

Purpose

When the fallback branch has fewer partition keys than the main branch
(e.g. main has (dt, a) while fallback has (dt) only), two bugs caused
incorrect query results:

  1. Extra partition key predicates (e.g. a=xxx) were pushed to the
    fallback scan unchanged, causing wrong partition filtering.

  2. Partition ownership comparison in plan() used BinaryRow equality
    between main's multi-field rows and fallback's single-field rows,
    which never matched, so fallback partitions were never recognized
    as covered by main.

Close #7503

Tests

CI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] when using chain table , not all partition key should be used to fallback and filter data

1 participant